<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>新增安全检查表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../../../layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="../../../css/public.css" media="all"/>
    <link rel="stylesheet" href="../../common/zTreeStyle.css"/>
    <link rel="stylesheet" href="allSend.css"/>
</head>

<body class="childrenBody" style="background: white;">
<div class="topsty">
    <div style="display: inline;">
				<span style="font-size: 15px;">
					<i class="layui-icon" style="color: #1E9FFF;margin:0 10px 0 30px;">&#xe65b;</i>
					<span id="pageTitle">批量导入</span>
				</span>
    </div>
    <div class="backtit" style="top: -5px;">
        <div class="back_san"></div>
        <a onclick="history.go(-1)" class="layui-btn layui-btn-normal">返回</a>
    </div>
</div>
<div class="body">
    <div class="send_box">
        <label>上传试题文件</label>
        <div class="fl">
            <input type="file">
            <span class="mob">下载标准模板</span>
            <div class="send">试题导入</div>
        </div>
    </div>
    <div class="attention">
        <span>说明：</span>
        <ul>
            <li>1、请不要随意变更模板文件中单元格的样式，例如合并单元格，随意增删列等</li>
            <li>2、支持题型为：单选题，多选题，判断题，文字拼写务必以此为准</li>
            <li>3、选项2-8项均可； 每题的选项数量务必与选项内容数量一致，否则不能导入</li>
            <li>4、选择题答案务必大写格式，多选项字母务必连着拼写，不要有空格或者符号间隔</li>
            <li>5、考生选择内容跟录入正解完全一致时，系统会自动判分</li>
            <li>6、题干或选项：不支持指数、分数、编辑器公式</li>
        </ul>
    </div>

</div>
<script type="text/javascript" src="../../common/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script type="text/javascript" src="../../common/config.js"></script>
<script type="text/javascript" src="../../../layui/layui.js"></script>
<script type="text/javascript" src="../../common/jquery.ztree.core.js"></script>
<script type="text/javascript" src="../../common/jquery.ztree.excheck.js"></script>
<script type="text/javascript" src="allSend.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script>
    layui.use(['form', 'layedit', 'laydate'], function () {
        var form = layui.form
            , layer = layui.layer
            , layedit = layui.layedit
            , laydate = layui.laydate;

        //创建一个编辑器
        var editIndex = layedit.build('LAY_demo_editor');

        //自定义验证规则
        form.verify({
            title: function (value) {
                if (value.length < 5) {
                    return '标题至少得5个字符啊';
                }
            }
            , pass: [/(.+){6,12}$/, '密码必须6到12位']
            , content: function (value) {
                layedit.sync(editIndex);
            }
        });

        //监听指定开关
        form.on('switch(switchTest)', function (data) {
            layer.msg('开关checked：' + (this.checked ? 'true' : 'false'), {
                offset: '6px'
            });
            layer.tips('温馨提示：请注意开关状态的文字可以随意定义，而不仅仅是ON|OFF', data.othis)
        });

        //监听提交
        form.on('submit(demo1)', function (data) {
            layer.alert(JSON.stringify(data.field), {
                title: '最终的提交信息'
            })
            return false;
        });

    });

    var app = new Vue({
        el:".body",
        data: {
            list:[]
        }
    })
</script>
</body>

</html>